#ifndef __PLUG_DETECTMNG_H__
#define __PLUG_DETECTMNG_H__

#include "hi_type.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* End of #ifdef __cplusplus */


typedef struct PLUG_DETECTMNG_CFG_s
{
    HI_S32 s32ClassNum;
    HI_S32 s32DetectIntervalMs;
}PLUG_DETECTMNG_CFG_S;

/**
 * @brief    detectmng init
 * @param[in] pstMngCfg
 * @return 0 success,non-zero error code.
 * @exception    None
 */
HI_S32 PLUG_DETECTMNG_Init(PLUG_DETECTMNG_CFG_S *pstMngCfg);

/**
 * @brief    detectmng check is detectation in interval
 * @param[in] none
 * @return HI_TRUE out of interval, HI_FALSE in intetval or failed
 * @exception    None
 */
HI_BOOL PLUG_DETECTMNG_IsDetectInInterval(HI_S32 s32Class);

/**
 * @brief    detectmng deinit
 * @param[in] none
 * @return 0 success,non-zero error code.
 * @exception    None
 */
HI_S32 PLUG_DETECTMNG_Deinit(HI_VOID);


#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* End of #ifdef __cplusplus */

#endif /* __PLUG_DETECTMNG_H__ */

